package com.woniuxy.carlife.carlifeuserweb.config;


import com.woniuxy.carlife.carlifecommonsweb.exception.CarlifeGlobalException;
import com.woniuxy.carlife.carlifeuserweb.util.MinioTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author qk
 * @ClassName:BaseConfig
 * @Description:
 * @date 2021/4/8 15:03
 **/
@Configuration
public class BaseConfig {
    @Autowired
    private MinioConfig minioConfig;

    @Resource
    private CarlifeGlobalException carlifeGlobalException;

    @Bean
    public MinioTemplate createMinioTemplate(){
        MinioTemplate minioTemplate=new MinioTemplate(minioConfig);
        return minioTemplate;
    }



}
